<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/20
  Time: 16:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>request对象1️⃣</title>
</head>
<body>
<%
  // 获取到客户端的信息
  String remoteUser = request.getRemoteUser();
  String remoteAddr = request.getRemoteAddr();
  int remotePort = request.getRemotePort();
  // 获取服务器的信息
  String serverName = request.getServerName();
  int serverPort = request.getServerPort();
  // 获取到请求信息
  String method = request.getMethod(); // 🌟
  String requestURI = request.getRequestURI();// 🌟
  String protocol = request.getProtocol();
  String authType = request.getAuthType();
  out.print(remoteUser + "<br/>");
  out.print(remoteAddr + "<br/>");
  out.print(remotePort + "<br/>");
  out.print(serverName + "<br/>");
  out.print(serverPort + "<br/>");
  out.print(method + "<br/>");
  out.print(requestURI + "<br/>");
  out.print(protocol + "<br/>");
  out.print(authType + "<br/>");
%>
</body>
</html>